Merge branch 'master' of git.xfoto.com.cn:CarePatch/thermometer

huangqimin001 3 years ago
parent
commit
3eead2ac70
1 changed files with 1 additions and 2 deletions
  1. 1 2
      api/point_views.py

+ 1 - 2
api/point_views.py

@@ -84,11 +84,10 @@ def save_point_fields(request):
84 84
 @logit
85 85
 def bind_eqpt(request):
86 86
     macid = request.POST.get('macid', '')
87
-    point_id = request.POST.get('point_id', '')
88 87
     user_id = request.POST.get('user_id', '')
89 88
 
90 89
     try:
91
-        ipui = IsolationPointUserInfo.objects.get(point_id=point_id, user_id=user_id, status=True)
90
+        ipui = IsolationPointUserInfo.objects.get(user_id=user_id, status=True)
92 91
     except IsolationPointUserInfo.DoesNotExist:
93 92
         return response(IsolationPointStatusCode.ISOLATIONPOINT_USER_NOT_FOUND)
94 93